<?=HTML::anchor('/download','Загрузить изображение')?>
<input id="count" type="hidden" value="<?=$page?>" name="">
<div class="load">
	<div class="ball"></div>
	<div class="ball1"></div>
</div>
<a id="single_image" href="image_big.jpg"><img src="image_small.jpg" alt=""/></a>
<div id="pagination">
	<div class ="wrap">
		<h1>Галерея</h1>
		<div id="p1" class="_current" >
			<ul id="gallery">
				<?foreach ($img as $val){?>
					<li>
						<a id="<?=$val->id?>"  class="fancybox fancybox.ajax full "><?=HTML::image('/media/uploads/'.$val->mini)?></a>
					</li>
				<?}?>
			</ul>
		</div>	
	</div>
	<div id="pages">                   
	</div>
</div>	




	
